package com.java.tutorials.designpattern.behavioral.state;

/**
 * Created by xuzhike on 2016/3/13.
 */
//定义抽象状态类:
public abstract class State {
    public void pull( Car wrapper ) {
        wrapper.setState( new Off() );
        System.out.println( " turning off" );
    }
}
